package club.hicode.daydayup.json;

import club.hicode.daydayup.netty.udp.agent.CmdBO;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Json的Controller处理
 *
 * @author Liu Chunfu
 * @date 2018-07-25 下午5:37
 **/
@RequestMapping("/test")
@Controller
public class JsonTestController {

	@RequestMapping("/bb")
	public String xx() {

		//xxxx
		return "123";
	}

	//	@PostMapping("/mic/content2")
	//	public String invoke(@RequestBody String content) {
	//		System.out.println("收到参数：" + content);
	//		return content;
	//	}
	//
	//	@PostMapping("/mic/content2")
	//	public String invoke(@RequestBody CmdBO<String,String> content) {
	//		System.out.println("收到参数：" + content);
	//		return content.toString();
	//	}
}
